package com.github.wxiaoqi.security.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.ace.cache.EnableAceCache;

import de.codecentric.boot.admin.server.config.EnableAdminServer;

/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-05-25 12:44
 */
@EnableDiscoveryClient
@EnableCircuitBreaker
@SpringBootApplication(scanBasePackages = {"com.github.wxiaoqi.security.common","com.github.wxiaoqi.security.auth.client",
		"com.github.wxiaoqi.security.admin"})
@EnableFeignClients({"com.github.wxiaoqi.security.auth.client.feign"})
@EnableScheduling
@EnableAdminServer
@EnableAceCache
//@EnableMethodCache(basePackages = {"com.github.wxiaoqi.security.admin.biz"
//		,"com.github.wxiaoqi.security.admin.config"
//		,"com.github.wxiaoqi.security.admin.rpc"})
//@EnableCreateCacheAnnotation
@EnableTransactionManagement
//@MapperScan("com.github.wxiaoqi.security.admin.mapper")
public class AdminBootstrap {
    public static void main(String[] args) {
    	SpringApplication.run(AdminBootstrap.class, args);
    }
}
